package com.qzct.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author 闽闽
 * @since 2025-01-11
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(value = "tb_user_communication")
public class UserCommunication implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 种草id
     */
    @Id(keyType = KeyType.Auto)
    @ApiModelProperty("种草id")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Integer userId;

    /**
     * 风景，美食
     */
    @ApiModelProperty("风景，美食")
    private String type;

    /**
     * 风景id或美食id
     */
    @ApiModelProperty("风景id或美食id")
    private Integer cId;

    /**
     * 种草内容
     */
    @ApiModelProperty("种草内容")
    @Column(isLarge = true)
    private String content;

    /**
     * 点赞数量
     */
    @ApiModelProperty("点赞数量")
    private Long likeCount;

    /**
     * 评论数量
     */
    @ApiModelProperty("评论数量")
    private Long commentCount;

    @ApiModelProperty("创建时间")
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;
}
